/*
 * BaseEmWebSource.java
 *
 * Created on August 13, 2007, 6:25 PM
 *
 * To change this template, choose Tools | Options and locate the template under
 * the Source Creation and Management node. Right-click the template and choose
 * Open. You can then make changes to the template in the Source Editor.
 */

package com.computec.baseem.source;

import java.util.ResourceBundle;

/**
 *
 * @author FSanchez
 */
public class BaseEmWebSource {
    protected static BaseEmWebSource baseEmWebSource;
    
    private static ResourceBundle baseEmWebSetup;
    private static ResourceBundle baseEmWebErrorSetup; 
    
    /**
     * Creates a new instance of BaseEmWebSource 
     */
    public BaseEmWebSource() {
	baseEmWebSetup = ResourceBundle.getBundle("BaseEmWebSetup");
        baseEmWebErrorSetup = ResourceBundle.getBundle("BaseEmWebErrorSetup");        
    }
    
     public static BaseEmWebSource getInstance() {
        if (baseEmWebSource == null) {
            baseEmWebSource = new BaseEmWebSource();
        }
        return baseEmWebSource;
    }
     
     public String getBaseEmWebSetupKey(String key) {
        return baseEmWebSetup.getString(key); 
    }
   
    public String getBaseEmWebErrorSetupKey(String key) {
        return baseEmWebErrorSetup.getString(key); 
    }    
}
